package com.webbei.product.service.impl;

import java.util.List;

import com.webbei.product.action.Product;
import com.webbei.product.action.ProductInfo;
import com.webbei.product.dao.ProductDao;
import com.webbei.product.service.ProductService;

public class ProductServiceImpl implements ProductService{
  private ProductDao pd;
  
	public ProductDao getPd() {
		return pd;
	}
	
	public void setPd(ProductDao pd) {
		this.pd = pd;
	}

	@Override
	public List<Product> getProducts() {
      List<Product>products = pd.getProducts();
		return products;
	}

	@Override
	public ProductInfo getProductById(int id) {
		
		return pd.getProductById(id);
	}

}
